﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using bdxyit.com.RecruitmentAppSys.IDAL;
using bdxyit.com.RecruitmentAppSys.DALFactory;
using bdxyit.com.RecruitmentAppSys.Models;
using bdxyit.com.RecruitmentAppSys.ViewModels;

namespace bdxyit.com.RecruitmentAppSys.BLL
{
    public class CompanyInfoBLL
    {
        private static readonly ICompanyInfoDAL CompanyInfoDal = DataAccess.CreateCompanyInfo();
        public static List<CompanyInfo> GetCompanyInfo()
        {
            return CompanyInfoDal.SelectCompanyInfo();
        }
        public static CompanyInfo GetCompanyInfoByCompanyID(string companyID)
        {
            return CompanyInfoDal.GetCompanyInfoByCompanyID(companyID);
        }
        public static bool DeleteCompanyInfoByUserId(string companyID)
        {
            return CompanyInfoDal.DeleteCompanyInfoByUserId(companyID);
        }
        public static bool InsertCompanyInfo(CompanyInfo company)
        {
            return CompanyInfoDal.InsertCompanyInfo(company);
        }
        public static bool UpdateCompanyInfo(CompanyInfo company)
        {
            return CompanyInfoDal.UpdateCompanyInfo(company);
        }


    }
}
